package com.hnust.service;

import org.springframework.web.multipart.MultipartFile;

import java.util.Map;

/*
 * @Author Tonited
 * @Description //TODO 关于上传的相关服务
 * @Date 17:29 2020/10/29
 * @Param 
 * @return 
 **/
public interface UpLoadService {

	String readChapter(MultipartFile file,String courseId) throws Exception;

	/*
	 * @Author Tonited
	 * @Description //TODO 上传文件，判断文件是否符合规范，最终返回上传文件的路径
	 * @Date 16:31 2020/10/29
	 * @Param [file]
	 * @return java.lang.String
	 **/
	String upload(MultipartFile file) throws Exception;


	/*
	 * @Author Tonited
	 * @Description //TODO 读取上传的专业毕业要求分解指标点文件并存入数据库，返回报错信息
	 * @Date 16:38 2020/10/29
	 * @Param [file,collageId]
	 * @return java.lang.String
	 **/
	String readGradFile(MultipartFile file,String collageId) throws Exception;

	/*
	 * @Author Tonited
	 * @Description //TODO 读取上传课程目标文件，将其与专业毕业要求分解指标点对应，并存入数据库，返回报错信息
	 * @Date 19:12 2020/10/29
	 * @Param [file,collageId]
	 * @return java.lang.String
	 **/
	String readCoutarFile(MultipartFile file,String collageId) throws Exception;

	/*
	 * @Author Tonited
	 * @Description //TODO 读取批量上传学生文件并返回学生列表及提示，如果发生错误则返回null和报错信息，初始账号和密码都是学号
	 * @Date 8:46 2020/10/30
	 * @Param [file,collageId]
	 * @return java.util.Map<java.lang.String,java.lang.Object>
	 	msg:报错信息String，list:学生列表List<Student>
	 **/
	Map<String, Object> readStudsent(MultipartFile file,String collageId) throws Exception;

	public Map<String, Object> readTeacher(MultipartFile file, String collageId) throws Exception;

	public Map<String, Object> readQuestions(MultipartFile file, String courseId) throws Exception;

}
